package viqiang.ye.myspringapplication;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class MySpringApplication {

	public static void main(String[] args) {
	    SpringApplication.run(MySpringApplication.class, args);

//        new SpringApplicationBuilder(MySpringApplication.class)
//                .web(WebApplicationType.NONE)
//                .run(args);

//        SpringApplication application = new SpringApplication(MySpringApplication.class);
//        application.setBannerMode(Banner.Mode.OFF); //关闭了Banner的打印
//        application.setWebApplicationType(WebApplicationType.NONE);  //设置应用环境为非WEB应用
//        application.setAdditionalProfiles("dev"); //profiles指定为dev
//        application.run(args);
	}

}
